package com.fk.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.fk.entity.User;

public interface UserRepository extends JpaRepository<User, Integer>{
		
	@Query(value = "select * from user  where user_name=?1 and password =?2 ",nativeQuery = true)
	public User getUser(String name,String password);
}
